package com.celesea.auth.position.v1.controller.resource;

import com.celesea.auth.position.entity.Position;
import org.springframework.beans.BeanUtils;

/**
 * @author JackYuan
 * @create 2017-10-26 23:45
 */
public class PageResource {
    private String id;
    private String name;
    private String code;
    private String company;
    private String deptId;
    private String deptName;
    private Byte extend;
    private Byte bubble;

    public PageResource(Position position) {
        BeanUtils.copyProperties(position,this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Byte getExtend() {
        return extend;
    }

    public void setExtend(Byte extend) {
        this.extend = extend;
    }

    public Byte getBubble() {
        return bubble;
    }

    public void setBubble(Byte bubble) {
        this.bubble = bubble;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}
